<?php 

class main_search extends Load_use
{
	function getBlock()
	{
		$value = ( isset( $_GET['q'] ) && $_GET['q'] != '' ) ? strip_tags( $_GET['q'] ) : '';
		$search_form = '<div class="form-search">
							<form method="get" action="/search">
								<fieldset class="form-search__type-text">
									<input id="search_text" type="text" name="q" autocomplete="off" value="'.$value.'" placeholder="Что будем искать?" check="on"/>
								</fieldset>
								<fieldset class="form-search__submit">
									<div class="form-search__submit__inner">
										<input type="submit" value="Найти" />
									</div>	
								</fieldset>
							</form>
						</div>';

		return $search_form;
	}
}